package com.qzsoft.zhjd.machine.modules.machinerepair.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qzsoft.jeemis.common.annotation.Dict;

import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author HuXiuMing
 * @date 2021/10/21 16:50 维修信息
 */

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class MachineRepairDto {

    /**
     * 主键
     */
    private String id;

    /**
     * 设备主键
     */
    private String machineId;

    /**
     * 机械名称
     */
    private String machineName;

    /**
     * 机械类型
     */
    @Dict(dicCodeField = "machineType", dictCodeId = "MACHINE_TYPE")
    private String machineType;

    /**
     * 机械一级分类
     */
    @Dict(dicCodeField = "machineCategory1", dictCodeId = "MACHINE_CATEGORY")
    private String machineCategory1;

    /**
     * 机械二级分类
     */
    @Dict(dicCodeField = "machineCategory2", dictCodeId = "MACHINE_CATEGORY")
    private String machineCategory2;

    /**
     * 机械品牌
     */
    @Dict(dicCodeField = "machineBrand", dictCodeId = "MACHINE_BRAND_MODEL")
    private String machineBrand;

    /**
     * 机械型号
     */
    @Dict(dicCodeField = "machineModel", dictCodeId = "MACHINE_BRAND_MODEL")
    private String machineModel;

    /**
     * 维修时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date day;

    /**
     * 维修费用
     */
    private BigDecimal amount;

    /**
     * 维修描述
     */
    private String info;

}
